package com.demo.model;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

import java.io.Serializable;

/**
 * address 对象
 * 使用JSON命名策略，SnakeCase策略，Java对象属性：personId，序列化后属性：person_id
 * @author K
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class Address implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户地址
     */
    private String userAddress;

    private static final long serialVersionUID = 1L;
}